package com.constants;

import com.sync.utils.OSEnvir;

public class Column {

	// first_name last_name sex score score2
	public	static int count = 4;
	public	static int chunk = 7; // 6 + 1 
	public static int block_len = chunk * count;//sex = 3  score =3 

	public static byte[] ID = "id".getBytes();
	public static int ID$_LEN = ID.length + 1 + 4 + 1; // |id:1:1|
	public static int NULL$_LEN = "NULL".length() + 1;// NULL|

	public static byte[] COL_1 = "first_name".getBytes();
	public static byte[] COL_2 = "last_name".getBytes();
	public static byte[] COL_3 = "sex".getBytes();
	public static byte[] COL_4 = "score".getBytes();
	public static byte[] COL_5= "score2".getBytes();

	public static int[] COL_LEN = { COL_1.length, COL_2.length, COL_3.length, COL_4.length, COL_5.length };
	// first_name:2:0| 
	public static int[] COL$_LEN = { COL_1.length + 5, COL_2.length + 5, COL_3.length + 5, COL_4.length + 5,COL_5.length + 5 };

	public static int COL$_LEN_ALL =  0;
	static {
		if (!OSEnvir.isWindows() && !OSEnvir.isMacOS()) {
			count = 5;
		}
		
		COL$_LEN_ALL += NULL$_LEN  * count;
		for(int i=0;i<count;i++){
			COL$_LEN_ALL+=  COL$_LEN[i];
		}
	}
}
